<?php
/* @var $this ApplesController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Apples',
);
if(0==strcmp(Yii::app()->user->name,"admin")){ 
	$this->menu=array(
		array('label'=>'添加测试号码', 'url'=>array('create')),
		array('label'=>'所有号码', 'url'=>array('admin')),
		array('label'=>'在线的号码', 'url'=>array('admin&Apples[stat]=2')),
		array('label'=>'更新统计数据', 'url'=>array('group&save=2')),
		array('label'=>'清理号码', 'url'=>array('check&start=1'),'linkOptions'=>array('class'=>'clean_check'))
	);
}
?>

<h1>号码池数据统计</h1>
<div class="grid-view"> 
<table class="items">
	<thead>
	<tr><th>地区</th><th>在线量</th></tr>
	</thead>
	<tbody>
<?php foreach ($model as $key => $value) {
	echo "<tr class='odd'><td>".$key ."</td><td>". $value."</td></tr>";
} ?>
</tbody>
</table>
</div>